import request from '@/utils/request'

// 查询组织架构2列表
export function listArchitecture(query) {
  return request({
    url: '/app/architecture/list',
    method: 'get',
    params: query
  })
}

// 查询组织架构2详细
export function getArchitecture(id) {
  return request({
    url: '/app/architecture/' + id,
    method: 'get'
  })
}

// 新增组织架构2
export function addArchitecture(data) {
  return request({
    url: '/app/architecture',
    method: 'post',
    data: data
  })
}

// 修改组织架构2
export function updateArchitecture(data) {
  return request({
    url: '/app/architecture',
    method: 'put',
    data: data
  })
}

// 删除组织架构2
export function delArchitecture(id) {
  return request({
    url: '/app/architecture/' + id,
    method: 'delete'
  })
}
